<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://love2d.org/forums/app.php/feed/topics" />

	<title>LÖVE</title>
	
	<link href="https://love2d.org/forums/index.php" />
	<updated>2021-02-26T15:10:27</updated>

	<author><name><![CDATA[LÖVE]]></name></author>
	<id>https://love2d.org/forums/app.php/feed/topics</id>

		<entry>
		<author><name><![CDATA[DerpChest]]></name></author>
		<updated>2021-02-26T15:10:27</updated>

		<published>2021-02-26T15:10:27</published>
		<id>https://love2d.org/forums/viewtopic.php?t=90378&amp;p=238893#p238893</id>
		<link href="https://love2d.org/forums/viewtopic.php?t=90378&amp;p=238893#p238893"/>
		<title type="html"><![CDATA[Support and Development • Using an older love version gives out a black screen]]></title>

					<category term="Support and Development" scheme="https://love2d.org/forums/viewforum.php?f=4" label="Support and Development"/>
		
		<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=90378&amp;p=238893#p238893"><![CDATA[
I am using supertoast to test detecting love versions, but it gives out a black screen.<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=159356">DerpChest</a> — Fri Feb 26, 2021 3:10 pm — Replies 6 — Views 88</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DerpChest]]></name></author>
		<updated>2021-02-26T15:05:44</updated>

		<published>2021-02-26T15:05:44</published>
		<id>https://love2d.org/forums/viewtopic.php?t=90377&amp;p=238892#p238892</id>
		<link href="https://love2d.org/forums/viewtopic.php?t=90377&amp;p=238892#p238892"/>
		<title type="html"><![CDATA[Games and Creations • Sinescroller Demo that detects your love version!]]></title>

					<category term="Games and Creations" scheme="https://love2d.org/forums/viewforum.php?f=14" label="Games and Creations"/>
		
		<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=90377&amp;p=238892#p238892"><![CDATA[
It detects your love version! Only works up to 0.9.1<dl class="file"><dt><img src="./images/upload_icons/love.png" alt="" /> <a class="postlink" href="https://love2d.org/forums/download/file.php?id=19255&amp;sid=a26bd6479a60c2c863524514c598a928">sinescroller.love</a></dt></dl><p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=159356">DerpChest</a> — Fri Feb 26, 2021 3:05 pm — Replies 0 — Views 59</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jefolo]]></name></author>
		<updated>2021-02-26T14:15:16</updated>

		<published>2021-02-26T14:15:16</published>
		<id>https://love2d.org/forums/viewtopic.php?t=90376&amp;p=238891#p238891</id>
		<link href="https://love2d.org/forums/viewtopic.php?t=90376&amp;p=238891#p238891"/>
		<title type="html"><![CDATA[Support and Development • Actual resolution]]></title>

					<category term="Support and Development" scheme="https://love2d.org/forums/viewforum.php?f=4" label="Support and Development"/>
		
		<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=90376&amp;p=238891#p238891"><![CDATA[
Hello,<br>today I noticed something strange on resolution.<br>I'm doing a game with the following parameter set in conf.lua<br><div class="codebox"><p>CODE: </p><pre><code>    t.window.width = 360                -- The window width (number): 360    t.window.height = 640               -- The window height (number): 640    t.window.borderless = true         -- Remove all border visuals from the window (boolean)    t.window.resizable = false          -- Let the window be user-resizable (boolean)    t.window.minwidth = 1               -- Minimum window width if the window is resizable (number)    t.window.minheight = 1              -- Minimum window height if the window is resizable (number)    t.window.fullscreen = false         -- Enable fullscreen (boolean)    t.window.fullscreentype = "exclusive" -- Choose between "desktop" fullscreen or "exclusive" fullscreen mode (string)</code></pre></div>I took a screenshot of the game (i'm running on win 10 and my display resolution is 1920x1080 and I measured the game dimension on the screenshot and it is 540x960. <br><br>How does it possible?<br><br>Thank you for your help<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=168481">jefolo</a> — Fri Feb 26, 2021 2:15 pm — Replies 3 — Views 72</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[steVeRoll]]></name></author>
		<updated>2021-02-24T19:56:36</updated>

		<published>2021-02-24T19:56:36</published>
		<id>https://love2d.org/forums/viewtopic.php?t=90370&amp;p=238856#p238856</id>
		<link href="https://love2d.org/forums/viewtopic.php?t=90370&amp;p=238856#p238856"/>
		<title type="html"><![CDATA[Games and Creations • Choco-Ball Roll!]]></title>

					<category term="Games and Creations" scheme="https://love2d.org/forums/viewforum.php?f=14" label="Games and Creations"/>
		
		<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=90370&amp;p=238856#p238856"><![CDATA[
This game was made in 3 days for <a href="https://itch.io/jam/love2d-jam-2021" class="postlink">LÖVE Jam 2021</a>.<br>Can <em>you</em> help the chocolate ball get through 6 challenging chocolatey levels??<br><a href="https://steveroll.itch.io/choco-ball-roll" class="postlink">https://steveroll.itch.io/choco-ball-roll</a><br><br><img src="https://img.itch.zone/aW1hZ2UvOTMxMjcwLzUyNzQzNDQuZ2lm/original/rsx1Y1.gif" class="postimage" alt="Image"><p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=137548">steVeRoll</a> — Wed Feb 24, 2021 7:56 pm — Replies 1 — Views 101</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gcmartijn]]></name></author>
		<updated>2021-02-24T15:51:07</updated>

		<published>2021-02-24T15:51:07</published>
		<id>https://love2d.org/forums/viewtopic.php?t=90368&amp;p=238846#p238846</id>
		<link href="https://love2d.org/forums/viewtopic.php?t=90368&amp;p=238846#p238846"/>
		<title type="html"><![CDATA[Support and Development • multiple canvases alpha, not working ?]]></title>

					<category term="Support and Development" scheme="https://love2d.org/forums/viewforum.php?f=4" label="Support and Development"/>
		
		<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=90368&amp;p=238846#p238846"><![CDATA[
Hi,<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://love2d.org/forums/download/file.php?id=19244&amp;sid=a26bd6479a60c2c863524514c598a928" class="postimage" alt="Screenshot 2021-02-24 at 16.43.03.png" onclick="viewableArea(this);" /></dt></dl></div>How to make the yellow part .50 alpha ?<br><br>This is the not working code.<br><div class="codebox"><p>CODE: </p><pre><code>function love.load()    canvas1 = love.graphics.newCanvas()    drawCanvas1()    canvas2 = love.graphics.newCanvas()    drawCanvas2()    love.graphics.setCanvas()endfunction drawCanvas1()    love.graphics.setCanvas(canvas1)    love.graphics.setBlendMode("alpha", "premultiplied")    love.graphics.setColor(1, 0, 0)    love.graphics.rectangle("fill", 0, 0, 100, 100)endfunction drawCanvas2()    love.graphics.setCanvas(canvas2)    love.graphics.setBlendMode("alpha", "premultiplied")    love.graphics.setColor(1, 1, 0, .5)    love.graphics.rectangle("fill", 50, 50, 100, 100)endfunction love.update(dt)    canvas1:renderTo(        function()            drawCanvas1()        end    )    canvas2:renderTo(        function()            drawCanvas2()        end    )endfunction love.draw()    love.graphics.setColor(1, 1, 1, 1)    love.graphics.draw(canvas1)    love.graphics.draw(canvas2)end</code></pre></div>and this is the working code, but without the update code I want to use.<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://love2d.org/forums/download/file.php?id=19248&amp;sid=a26bd6479a60c2c863524514c598a928" class="postimage" alt="Screenshot 2021-02-24 at 16.46.08.png" onclick="viewableArea(this);" /></dt></dl></div><div class="codebox"><p>CODE: </p><pre><code>function love.load()    canvas1 = love.graphics.newCanvas()    drawCanvas1()    canvas2 = love.graphics.newCanvas()    drawCanvas2()    love.graphics.setCanvas()endfunction drawCanvas1()    love.graphics.setCanvas(canvas1)    love.graphics.setColor(1, 0, 0)    love.graphics.rectangle("fill", 0, 0, 100, 100)endfunction drawCanvas2()    love.graphics.setCanvas(canvas2)    love.graphics.setColor(1, 1, 0, .5)    love.graphics.rectangle("fill", 50, 50, 100, 100)end-- function love.update(dt)--     canvas1:renderTo(--         function()--             drawCanvas1()--         end--     )--     canvas2:renderTo(--         function()--             drawCanvas2()--         end--     )-- endfunction love.draw()    love.graphics.setColor(1, 1, 1, 1)    love.graphics.draw(canvas1)    love.graphics.setBlendMode("alpha", "premultiplied")    love.graphics.draw(canvas2)end</code></pre></div><dl class="file"><dt class="attach-image"><img src="https://love2d.org/forums/download/file.php?id=19247&amp;sid=a26bd6479a60c2c863524514c598a928" class="postimage" alt="Screenshot 2021-02-24 at 16.43.03.png" onclick="viewableArea(this);" /></dt></dl><p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=145326">gcmartijn</a> — Wed Feb 24, 2021 3:51 pm — Replies 6 — Views 194</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Superviro]]></name></author>
		<updated>2021-02-24T04:45:21</updated>

		<published>2021-02-24T04:45:21</published>
		<id>https://love2d.org/forums/viewtopic.php?t=90365&amp;p=238837#p238837</id>
		<link href="https://love2d.org/forums/viewtopic.php?t=90365&amp;p=238837#p238837"/>
		<title type="html"><![CDATA[Support and Development • Attempt to index local 'self' (a number value)]]></title>

					<category term="Support and Development" scheme="https://love2d.org/forums/viewforum.php?f=4" label="Support and Development"/>
		
		<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=90365&amp;p=238837#p238837"><![CDATA[
I'm beating my head against the wall on this one.<br><div class="codebox"><p>CODE: </p><pre><code>require 'libraries.fonts'Score = {}function Score:load()    self.score = 0endfunction Score:update(amount)    self.score = self.score + amount -- Line of code throwing errorendfunction Score:draw()    love.graphics.setFont(Fonts.dotGothic20)    love.graphics.print('Score: ' .. self.score, 10, 10)end</code></pre></div><div class="codebox"><p>CODE: </p><pre><code>Error: entities/score.lua:9: attempt to index local 'self' (a number value)stack traceback:        [string "boot.lua"]:777: in function '__index'        entities/score.lua:9: in function 'update'        state/level.lua:21: in function 'update'        [string "boot.lua"]:612: in function &lt;[string "boot.lua"]:594&gt;        [C]: in function 'xpcall'</code></pre></div><p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=172431">Superviro</a> — Wed Feb 24, 2021 4:45 am — Replies 10 — Views 240</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gunroar:Cannon()]]></name></author>
		<updated>2021-02-25T04:38:16 </updated>

		<published>2021-02-23T16:42:42</published>
		<id>https://love2d.org/forums/viewtopic.php?t=90362&amp;p=238827#p238827</id>
		<link href="https://love2d.org/forums/viewtopic.php?t=90362&amp;p=238827#p238827"/>
		<title type="html"><![CDATA[Support and Development • Help with steering behaviour]]></title>

					<category term="Support and Development" scheme="https://love2d.org/forums/viewforum.php?f=4" label="Support and Development"/>
		
		<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=90362&amp;p=238827#p238827"><![CDATA[
I'm trying to implement steering behaviour with a push from <a href="https://love2d.org/forums/viewtopic.php?f=3&amp;t=90247&amp;sid=f84a5d6fe35f43d091bfb496520c2fda" class="postlink">this</a> and a library I found, but<br>I'm having trouble with making objects not collide with one another.<br>The base I started with seems smooth enough though  it uses angles to move and I wanted something that uses velocity, but even if I try to make the "boids" flee from each other they still clump together(plus their supposed to "herd", the more red they are the more neighbors they have, and follow the closest neighbor). <br>Since I don't really know what I'm doing with this steering behavior, and I just used trail and error(kind of) to get this far, I just posted the love file.<br><strong>Info</strong><br>Each boid has an agent that handles the steering and they can be controlled by functions.<br>(Note: Main problem here is when and where to use use which different functions)<br><br>I listed those I thought important to the cause here(note, target/hunter can be an agent or vector or table with x and y):<div class="codebox"><p>CODE: </p><pre><code>agent:seek(target)agent:flee(hunter)agent:arrive(target)agent:pursuit(hunter, panicDistance)agent:evade(hunter)</code></pre></div><dl class="file"><dt><img src="./images/upload_icons/love.png" alt="" /> <a class="postlink" href="https://love2d.org/forums/download/file.php?id=19243&amp;sid=a26bd6479a60c2c863524514c598a928">boids3.love</a></dt></dl><p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=167496">Gunroar:Cannon()</a> — Tue Feb 23, 2021 4:42 pm — Replies 3 — Views 135</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gunroar:Cannon()]]></name></author>
		<updated>2021-02-23T02:10:31</updated>

		<published>2021-02-23T02:10:31</published>
		<id>https://love2d.org/forums/viewtopic.php?t=90359&amp;p=238820#p238820</id>
		<link href="https://love2d.org/forums/viewtopic.php?t=90359&amp;p=238820#p238820"/>
		<title type="html"><![CDATA[Support and Development • Packaging apk file on an android]]></title>

					<category term="Support and Development" scheme="https://love2d.org/forums/viewforum.php?f=4" label="Support and Development"/>
		
		<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=90359&amp;p=238820#p238820"><![CDATA[
Hi, all!<br>I've been trying to package an apk file on android, due to reasons where it's my only option, and I've seen that it seems possible p from some people in other sites. I decided to take liblove.so from the apk file to not have to build it<br> but besides that I'm having trouble and was thinking:<br>1)Could I use aide to do it(look at my <a href="https://love2d.org/forums/viewtopic.php?f=4&amp;t=90267&amp;sid=e9eb4dc0be700284625d38dab1f60be1" class="postlink">other post</a><br>2)Or could I use a <a href="https://m.apkpure.com/terminal-emulator-for-android/jackpal.androidterm" class="postlink"> command line emulator </a> to do it?<br><br>Thanks, all help is appreciated!<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=167496">Gunroar:Cannon()</a> — Tue Feb 23, 2021 2:10 am — Replies 2 — Views 92</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[togFox]]></name></author>
		<updated>2021-02-22T12:10:24 </updated>

		<published>2021-02-22T09:26:50</published>
		<id>https://love2d.org/forums/viewtopic.php?t=90355&amp;p=238810#p238810</id>
		<link href="https://love2d.org/forums/viewtopic.php?t=90355&amp;p=238810#p238810"/>
		<title type="html"><![CDATA[General • Can a neural network learn to play hockey?]]></title>

					<category term="General" scheme="https://love2d.org/forums/viewforum.php?f=3" label="General"/>
		
		<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=90355&amp;p=238810#p238810"><![CDATA[
I've read about a dozen articles on how a NN works. 2 inputs. An optional bias. One output. Hidden layers. Activation function etc but every article so far fails to explain what the inputs are, how they are determined and why a sigmoid function that results in a 0/1 could be remotely valuable.<br><br>I'm obviously biting off a lot here, but, as a project and experiment, I'd like to see if a NN can replace the behavioural tree my bot hockey players use.  <br><br>Can I fed into a single bot brain (a mini NN) the status of things around it (puck location, player proximity, velocity vectors etc) and then output the best course of action?<br><br>I have the sports game coded and it works. Bots already play each other with behavioral trees and a big finite state machine.<br><br>Time for next level. If I find a way forward I would do this incrementally with a small network and build it up over time to consider an ever increasing range of environment data (virtual world data) and an ever increasing range of outputs (actions).<br><br>However, I'm still puzzled over how all these articles talk about inputting 0 &amp; 1 and getting back 0 &amp; 1 and then assuming that means something.<br><br>(Also noting this is a Love2d forum and not a NN ) forum.<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=170436">togFox</a> — Mon Feb 22, 2021 9:26 am — Replies 6 — Views 203</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sarcose]]></name></author>
		<updated>2021-02-21T22:23:17</updated>

		<published>2021-02-21T22:23:17</published>
		<id>https://love2d.org/forums/viewtopic.php?t=90353&amp;p=238805#p238805</id>
		<link href="https://love2d.org/forums/viewtopic.php?t=90353&amp;p=238805#p238805"/>
		<title type="html"><![CDATA[Support and Development • Assign a 'require' to an index arbitrarily?]]></title>

					<category term="Support and Development" scheme="https://love2d.org/forums/viewforum.php?f=4" label="Support and Development"/>
		
		<content type="html" xml:base="https://love2d.org/forums/viewtopic.php?t=90353&amp;p=238805#p238805"><![CDATA[
Hi. I definitely tried to find a good answer to this but forgive me if this has been answered elsewhere and I'll gladly hop onto that thread if so. So let's say I want a *simple* table like this in an external file, where the following is the entire file:<br><div class="codebox"><p>CODE: </p><pre><code>--block_normal.luablock_normal = { name = 'block_normal',w = 36,h = 36,collision = 'normal',color = 'cyan', states = {idle = {outline = 'black',linewidth = 1,color = 'cyan', --arbitrary redundancy, btw, to test my backend system{'LG_RECT','A',0},},}}</code></pre></div>And then if I have a bunch of these individually defined entity profiles I'd like to be able to assign them and reference them generically. For example:<br><div class="codebox"><p>CODE: </p><pre><code>--lolol spaghetti file structuremap.actorblocks = {require 'engine.actorprop.blocks.block_normal',require 'engine.actorprop.blocks.block_cling',require 'engine.actorprop.blocks.block_greenheal',require 'engine.actorprop.blocks.block_lava',require 'engine.actorprop.blocks.block_bouncy',}</code></pre></div>But I've obviously learned the hard way that this just gives me a table with a bunch of bool trues. Theoretically for this test code I would want map.actorblocks[1], [2], etc to refer to the tables directly in accordance with the above designation. So if I refer to map.actorblocks[1] it will bring up block_normal.<br><br>Without making the individual files more complex, how could I store simple tables (e.g. without a load() function for each one) externally and then pull them into the program? Eventually this will become a modding API which is why I'm trying to figure out at least part of this simple implementation for now. I did try return = {codestuff} but it did the same thing so I'm guessing require is the wrong way to go about this? If dofile() is the right way to go how in the heck do I find the syntax for it, because the lua API isn't clarifying how to use it?<br><br>I'm mortified to attach a .love, because it is a huge mess of mostly-working code with entities designed with a variety of paradigms as I kept changing my mind, and this particular attempt represents a massive refactor I'm undertaking. Hopefully this is an abstract enough question, though.<p>Statistics: Posted by <a href="https://love2d.org/forums/memberlist.php?mode=viewprofile&amp;u=136805">Sarcose</a> — Sun Feb 21, 2021 10:23 pm — Replies 2 — Views 121</p><hr />
]]></content>
	</entry>
	</feed>
